package com.fz.study.project.controller;


import com.fz.study.project.entity.Result;
import com.fz.study.project.service.ITbShopTypeService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2024-02-26
 */
@RequiredArgsConstructor
@Tag(name = "商品类型")
@RestController
@RequestMapping("/tb-shop-type")
public class ShopTypeController {

    private final ITbShopTypeService shopTypeService;

    @Operation(summary = "查询商品类型")
    @GetMapping("list")
    public Result queryTypeList(){
        return Result.success(shopTypeService.queryTypeList());
    }

}
